package org.amphiprion.gameengine.font;

import java.util.HashMap;

public class FontProvider {
	private static HashMap<String, Font> fonts = new HashMap<String, Font>();

	public FontProvider() {
	}

	public static Font getFont(String fontFile, String fontBitmap) {
		Font f;
		if (fonts.containsKey(fontFile)) {
			f = fonts.get(fontFile);
		} else {
			f = new Font(fontFile, fontBitmap);
			fonts.put(fontFile, f);
		}
		return f;
	}
}
